/* $RCSFile: SecurityGtwBase.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/AddonNice.ECommerce.BankGateway/SecurityGtwBase.cs $
 * $log$
 * Revision 8 2010/08/09 10:07:05  christian.surieux
 *   Added Log comment to all cs files
 */

using System;
using System.Diagnostics;
using System.Configuration;
using System.Data;
using System.Collections;
using System.Collections.Specialized;

using AddonNice.ECommerce;

namespace AddonNice.ECommerce.Gateways.Security
{
	/// <summary>
	/// Summary description for SecurityGtwBase.
	/// </summary>
	public abstract class SecurityGtwBase : GtwBase
	{
        #region GtwBase overrides

        private Guid m_merchantID	=	Guid.Empty;
		/// <summary>
		/// Internal MerchantID generated in adn_EcommerceMerchants2
		/// </summary>
		public override Guid MerchantID
		{
			get 
			{
				return m_merchantID;
			}
			set 
			{
				m_merchantID = value;
			}
		}

		private NameValueCollection m_customSettings = new NameValueCollection();
		public override NameValueCollection CustomSettings
		{
			get {return m_customSettings;}
		}

        #endregion GtwBase overrides


		/// <summary>
		/// Warning each descendant must create its own unique ID
		/// </summary>
		public abstract	int SecuritysID
		{
			get;
		}
		
		private string _CartID	=	string.Empty;
		public string CartID
		{
			get
			{
				return _CartID;
			}
			set
			{
				if ( value != null )
					_CartID	=	value;
			}
		}

		private string _CountryID	=	string.Empty;
		public string CountryID
		{
			get
			{
				return _CountryID;
			}
			set
			{
				if ( value != null )
					_CountryID	=	value;
			}
		}

		private string _Currency	=	string.Empty;
		public string Currency
		{
			get
			{
				return _Currency;
			}
			set
			{
				if ( value != null )
					_Currency	=	value;
			}
		}

	}
}